<template>
  <el-form-item label="滚动类型">
    <el-select v-model="optionModel.scrollType" :disabled="disabled">
      <el-option
        v-for="item in scrollTypes"
        :key="item.value"
        :label="item.label"
        :value="item.value"
      >
      </el-option>
    </el-select>
  </el-form-item>
</template>

<script>
export default {
  name: 'ScrollTypeEditor',
  props: {
    designer: Object,
    selectedWidget: Object,
    optionModel: Object,
    disabled: {
      type: Boolean,
      default: false
    }
  },
  data() {
    return {
      scrollTypes: [
        { label: '关闭', value: 0 },
        { label: '上下', value: 1 },
        { label: '左右', value: 2 },
        { label: '上下左右', value: 3 }
      ]
    }
  }
}
</script>

<style scoped></style>
